#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<math.h>
int main()//ax*x+bx+c
{
	float a = 0, b = 0, c = 0;
	scanf("%f %f %f", &a, &b, &c);
	float f = b * b - 4 * a * c;
	float n1 = sqrt( b * b - 4 * a * c);
	float n2 = (sqrt(4 * a * c - b * b))/(2*a);
	float x1 = 0;
	float x2 = 0;
	if (f > 0)
	{
		x1 = (-b + n1) / (2 * a);
		x2 = (-b - n1) / (2 * a);
		printf("x1=%.2f,x2=%.2f",x1,x2);
	}
	else if (f == 0)
	{
		x1 = x2 = -b /( 2 * a);
		printf("x1=x2=%.2f\n",x1);
	}
	else 
	{ 
		
		x1 = -b /( 2*a);
		printf("x1=%.2f+%.2fi\n", x1, n2);
		printf("x2=%.2f-%.2fi", x1, n2);

	}

}